function boundarynodes = generate_boundarynodes(?);